package com.sddm.printServer.enums;

/**
 * @author cjc
 * @version 1.0
 * @date 2022/4/11 9:25
 * @Description
 */
public enum CallBackEnum {

    FAILURE(-1, "失败"),
    BAD_REQUEST(400, "异常请求"),
    ERROR(100000, "系统异常"),
    GET_PRINTLIST_ERROR(100001, " 获取打印机列表异常"),
    PARAMETER_ERROR(100002, "参数异常"),
    JSON_TRANSFORM_ERROR(100003, "JSON转换异常"),
    FILE_INPUTSTREAM_ERROR(100004, "获取文件输入流异常"),
    PRINT_ERROR(100005, "打印异常"),
    PRINT_CANCEL(100006, "打印取消");
    private Integer code;
    private String message;

    CallBackEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
